
package jp.ac.utokyo.pinyomi;
import java.io.IOException;
import java.util.Map;
import java.util.Set;


class TestHanzi2KanjiTable {

	public TestHanzi2KanjiTable()
	{ }

	public static void main(String[] args) throws IOException {
		Hanzi2KanjiTable hanziTable = Hanzi2KanjiTable.getInstance();

		Set<Map.Entry<String, Pair>> s = hanziTable.getMap().entrySet();

		for(Map.Entry<String, Pair> me: s){
			String key = me.getKey();
			Pair pair = me.getValue();

			String strLine = key;
			for (int i = 0; i < pair.size(); i++) {
				strLine += " (" + pair.getKey(i) + ", "
					+ pair.getVal(i)  + ", "
					+ pair.getTag(i)  + ") ";
			}

			System.out.println(strLine);
		}
	}
}
